
<?php
    require_once '../../../includes/controller/initialize.php';

 //   $stat = new StatsController();
   // $p = $stat->getSexPercentage();
    
    $co = new Company_Product();
    
    $tab = $co->getViewsStat(31, 2);
   // $json = $stat->convertToJson($p);
 
?>
<!DOCTYPE html>


<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         <script src="http://www.html5canvastutorials.com/libraries/kinetic-v3.8.3.js">
    </script>
        <script src="../javascript/Graph.js"></script>
        <script>
                var title = "Brukere prosentvis per kjønn";
                //var tab = [[0,5],[3,0],[6,1],[9,30], [12,1],[15,20],[18,1],[21,0], [24,81],[27,10],[30,12],[33,15], [36,127]];
             // var tab = [[0, 9],[1 , 150], [2 , 65], [3, 32], [4, 30]];
                var tab = <?php echo $tab?>;
        </script>
        
        

        
    </head>

    <body onload="obj.drawGraph(tab, 'test', 'test', 'jara');  ">
                    
        
        
         
        <canvas id="canvas" width="1000" height="600" style="border: solid 1px #aaaaaa; margin: 20px"></canvas>
        
                    <div id="canvas1"></div>
    </body>
</html>
